<template>
  <div class="attr-detail">
    <el-form>
      <el-form-item>
        <el-button size="medium" @click="handlePrev()">上一步, 填写商品促销</el-button>
        <el-button type="primary" size="medium" @click="handleCommit()">完成, 提交商品</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "ProductAttrDetail",
  emits: ['prevStep', 'finishCommit'],
  props: {
    value: Object,
  },
  setup(props, context) {
    const handlePrev = () => {
      context.emit('prevStep')
    };
    const handleCommit = () => {
      context.emit('finishCommit')
    };
    return {
      handlePrev,
      handleCommit,
    }
  }
}
</script>

<style scoped lang="less">

</style>